home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation How-To
/
Animation How-to CD.iso
/
PLY
/
CHAPTER5
/
SHATTER
/
SHATTER.PI
< prev
Wrap
Text File
|
1994-01-01
|
3KB
|
149 lines
// SHATTER.PI - Cube that flies apart
include "\ply\colors.inc"
start_frame 0
end_frame 109
total_frames 110
outfile "shat"
define rspeed frame*0.1
define lspeed frame*0.001
define fr frame
define a01 <-1, 1, 1>
define b01 < 1, 1, 1>
define c01 <-1,-1, 1>
define a02 < 1, 1, 1>
define b02 < 1,-1, 1>
define c02 <-1,-1, 1>
define a03 < 1, 1,-1>
define b03 < 1,-1,-1>
define c03 < 1, 1, 1>
define a04 < 1, 1, 1>
define b04 < 1,-1,-1>
define c04 < 1,-1, 1>
define a05 < 1, 1, 1>
define b05 <-1, 1, 1>
define c05 <-1, 1,-1>
define a06 < 1, 1, 1>
define b06 <-1, 1,-1>
define c06 < 1, 1,-1>
define a07 <-1, 1, 1>
define b07 <-1,-1,-1>
define c07 <-1,-1, 1>
define a08 <-1, 1, 1>
define b08 <-1, 1,-1>
define c08 <-1,-1,-1>
define a09 < 1,-1, 1>
define b09 <-1,-1, 1>
define c09 <-1,-1,-1>
define a10 < 1,-1, 1>
define b10 < 1,-1,-1>
define c10 <-1,-1,-1>
define a11 < 1, 1,-1>
define b11 <-1, 1,-1>
define c11 < 1,-1,-1>
define a12 <-1,-1,-1>
define b12 <-1, 1,-1>
define c12 < 1,-1,-1>
define a13 a01*0.9
define b13 b01*0.9
define c13 c01*0.9
define a14 a02*0.9
define b14 b02*0.9
define c14 c02*0.9
define a15 a03*0.9
define b15 b03*0.9
define c15 c03*0.9
define a16 a04*0.9
define b16 b04*0.9
define c16 c04*0.9
define a17 a05*0.9
define b17 b05*0.9
define c17 c05*0.9
define a18 a06*0.9
define b18 b06*0.9
define c18 c06*0.9
define a19 a07*0.9
define b19 b07*0.9
define c19 c07*0.9
define a20 a08*0.9
define b20 b08*0.9
define c20 c08*0.9
define a21 a09*0.9
define b21 b09*0.9
define c21 c09*0.9
define a22 a10*0.9
define b22 b10*0.9
define c22 c10*0.9
define a23 a11*0.9
define b23 b11*0.9
define c23 c11*0.9
define a24 a12*0.9
define b24 b12*0.9
define c24 c12*0.9
include "col.inc"
include "shat.inc"
// Set up background color & lights
background midnightblue
light <0,15,-12>
light <12,-15,-12>
light <2,2,2>,<0,0,0>
define bumpy_yellow
texture {
special surface {
color <1.5,0.8,0>
normal N + (dnoise(3*W) - white/2)
ambient 0.2
diffuse 0.3
specular white, 0.7
microfacet Cook 5
}
scale <0.05, 0.05, 0.05>
}
object {sphere <-10, 0, 0>,0.4 translate <frame/2,0,0> bumpy_yellow}
object {sphere < 0,-10, 0>,0.4 translate <0,frame/2,0> bumpy_yellow}
object {sphere < 0, 0,-10>,0.4 translate <0,0,frame/2> bumpy_yellow}
object {sphere < 10, 0, 0>,0.4 translate <-frame/2,0,0> bumpy_yellow}
object {sphere < 0, 10, 0>,0.4 translate <0,-frame/2,0> bumpy_yellow}
object {sphere < 0, 0, 10>,0.4 translate <0,0,-frame/2> bumpy_yellow}
viewpoint {
from <6, 12,-8>
at <0,0,0>
up <0, 1, 0>
angle 30
resolution 320,200
aspect 1.43
}